package com.lill.sale.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lill.common.component.util.IdUtil;
import com.lill.sale.dao.IBaseFinanceCompanyDao;
import com.lill.sale.model.BaseFinanceCompanyModel;
import com.lill.sale.service.IBaseFinanceCompanyService;

/**
 * 金融公司Service实现类
 *
 * @author lill
 * @date 2021-10-24 00:56:06
 */
@Service("baseFinanceCompanyService")
public class BaseFinanceCompanyServiceImpl implements IBaseFinanceCompanyService {
    @Autowired
    private IBaseFinanceCompanyDao baseFinanceCompanyDao;

    public BaseFinanceCompanyModel queryObject(String id) {
        return baseFinanceCompanyDao.queryObject(id);
    }

    public List<BaseFinanceCompanyModel> queryList(Map<String, Object> map) {
        return baseFinanceCompanyDao.queryList(map);
    }

    public int queryTotal(Map<String, Object> map) {
        return baseFinanceCompanyDao.queryTotal(map);
    }

    public int save(BaseFinanceCompanyModel baseFinanceCompany) {
        baseFinanceCompany.setId(IdUtil.createIdbyUUID());
        return baseFinanceCompanyDao.save(baseFinanceCompany);
    }

    public int update(BaseFinanceCompanyModel baseFinanceCompany) {
        return baseFinanceCompanyDao.update(baseFinanceCompany);
    }
    
	public int deleteLogicByMap(Map<String, Object> map) {
		return baseFinanceCompanyDao.deleteLogicByMap(map);
	}
}
